﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Dialog.Master" AutoEventWireup="true"
    CodeBehind="ShuntingCostEdit.aspx.cs" Inherits="NetDon.OA.Portal.Admin.ShuntingCostEdit" %>
    <%@ Import Namespace="NetDon.OA.Interface" %>
<%@ Import Namespace="NetDon.Utilities" %>
<%@ Register Src="../Controls/RequiredMark.ascx" TagName="RequiredMark" TagPrefix="uc1" %>
<%@ Register TagPrefix="uc3" TagName="ComanyDepartment_1" Src="~/Components/ProvinceCity.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" DefaultButton="btnSave">
        <NetDon:FormPanel ID="panelCustomInfo" runat="server" CaptionAlign="NotSet" RepeatColumns="1">
            <Items>
                <NetDon:FormItem HeaderText="线路分类">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlRouteTypeId" runat="server" DataSourceID="ObjectDataSourceRoutes"
                            DataTextField="RouteName" DataValueField="Id" AppendDataBoundItems="true">
                        </asp:DropDownList>
                        <asp:ObjectDataSource ID="ObjectDataSourceRoutes" runat="server" OldValuesParameterFormatString="original_{0}"
                            SelectMethod="RetrieveRoutes" TypeName="NetDon.OA.Business.MiscDataSource">
                            <SelectParameters>
                                <asp:Parameter Name="areaId" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <uc1:RequiredMark ID="RequiredMark11" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlRouteTypeId"
                            Display="None" ErrorMessage="请选择线路分类" SetFocusOnError="True">
                        </asp:RequiredFieldValidator>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="送货省份" ColumnSpan="2">
                    <ContentTemplate>
                        <uc3:ComanyDepartment_1 ID="ucProvinceCity1" runat="server"></uc3:ComanyDepartment_1>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="结算方式">
                    <ContentTemplate>
                        <asp:DropDownList ID="ddlCheckoutType" runat="server" DataSourceID="EnumDataSourceCheckoutType"
                            DataTextField="Description" DataValueField="Name" >
                        </asp:DropDownList>
                        <NetDon:EnumDataSource ID="EnumDataSourceCheckoutType" EmptyItemType="All" runat="server"
                            TypeName="NetDon.OA.Interface.CheckoutType">
                        </NetDon:EnumDataSource>
                        <uc1:RequiredMark ID="RequiredMark8" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlCheckoutType"
                            Display="None" ErrorMessage="请选择结算方式" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="调车成本（元）">
                    <ContentTemplate>
                        <asp:TextBox ID="txtShuntingCost" Text='<%#Convert.ToDecimal(Eval("ShuntingCost")).ToString("#,###.00")%>'
                            runat="server" SkinID="Text80" Style="text-align: right"></asp:TextBox>
                        <asp:MaskedEditExtender ID="txtOrderWeight_MaskedEditExtender" runat="server" ClearTextOnInvalid="True"
                            CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                            CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                            CultureTimePlaceholder="" Mask="9,999,999.999" InputDirection="RightToLeft" Enabled="True"
                            MaskType="Number" TargetControlID="txtShuntingCost">
                        </asp:MaskedEditExtender>
                          <uc1:RequiredMark ID="RequiredMark1" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtShuntingCost"
                            Display="None" ErrorMessage="请输入调车成本" SetFocusOnError="True">
                        </asp:RequiredFieldValidator>
                    </ContentTemplate>
                </NetDon:FormItem>
                <NetDon:FormItem HeaderText="成本单价（元）">
                    <ContentTemplate>
                        <asp:TextBox ID="txtUnitCost" Text='<%#Convert.ToDecimal(Eval("UnitCost")).ToString("#,###.00")%>'
                            runat="server" SkinID="Text80" Style="text-align: right"></asp:TextBox>
                      
                          <uc1:RequiredMark ID="RequiredMark2" runat="server" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtUnitCost"
                            Display="None" ErrorMessage="请输入成本单价" SetFocusOnError="True">
                        </asp:RequiredFieldValidator>
                    </ContentTemplate>
                </NetDon:FormItem>
            </Items>
        </NetDon:FormPanel>
        <div style="padding-top: 10px">
            <center>
                <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click"></asp:Button>
                <asp:Button ID="btnReturn" runat="server" Text="返回" CausesValidation="false" OnClick="btnClose_Click"></asp:Button>
                <NetDon:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="true"
                    ShowSummary="false" />
            </center>
        </div>
    </asp:Panel>
</asp:Content>
